package com.sunreal.paygateway.service;

import java.util.Map;

import com.sunreal.paygateway.dao.vo.SunrealPayOrder;
import com.sunreal.paygateway.sys.exception.BusinessException;

/**
 * 功能描述：聚合支付统一下单service
 *
 * @Author 彭广
 * @Date 2019/4/16
 */
public interface SunrealPayOrderService {
    /**
     * 创建订单
     *
     * @param payorder 订单详情
     * @return 订单ID
     */
    String createPayOrder(SunrealPayOrder payorder) throws BusinessException;

    /**
     * 根据订单ID，打开订单支付页面
     * @param payorderid 定单ID
     * @param resKey     需要返回的商户秘钥
     * @return 根据蚂蚁金服和微信支付返回不同内容，但是都以页面形式展现
     */
    Map<String, Object> payOrder(String payorderid, StringBuffer resKey) throws BusinessException;
}
